<extend name="Index:info"/>
<block name="body">
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-key"></span> 添加权限分组</strong><strong style="display: block;float: right;"> <a href="{:U('power/index')}"> 返回权限分组</a></strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:U('power/add')}">

      <div class="form-group">
        <div class="label">
          <label>分组名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="title" value=""  style="width:30%"/>
        </div>
      </div>

      <literal>
        <style>
          .title{display:inline-block;width:100px;line-height:30px;}
        </style>
      </literal>

      <div class="form-group">
        <div class="label">
          <label>分组名称：</label>
        </div>
        <div class="field">
          <foreach name="auths" item="val">
          <span class="title"><input type="checkbox" name="rules[]" class="checkbox" value="{$val.id}" >{$val.title}</span>
          </foreach>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>排序：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="sort" value=""  style="width:10%"/>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>   
        </div>
      </div>      
    </form>
  </div>
</div>
</block>